package com.hp.modules.sys.dto;

import com.hp.common.validator.Groups;
import com.hp.modules.sys.entity.SysNotice;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

@ApiModel(description = "通知公告")
public class SysNoticeParam {
    @ApiModelProperty(value = "编号-更新时必填")
    @NotNull(message = "编号不能为空",groups = {Groups.Update.class})
    private Long id;
    @ApiModelProperty(value = "公告标题",required = false)
    private String title;
    @ApiModelProperty(value = "公告类型(10->通知|TZ,20->公告|GG)",required=false)
    private SysNotice.TypeEnum type;
    @ApiModelProperty(value = "公告内容",required=false)
    private String content;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public SysNotice.TypeEnum getType() {
        return type;
    }

    public void setType(SysNotice.TypeEnum type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
